import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import index from '@/components/index'
import checkList from '@/components/checkList'
import addList from '@/components/addList'
import aList from '@/components/aList'
import comfirm from '@/components/comfirm'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },{
      path: '/login',
      name: 'login',
      component: login
    },{
      path: '/index',
      name: 'index',
      component: index,
      children:[{
        path: '/checkList',
        name: 'checkList',
        component: checkList
      },{
        path: '/addList',
        name: 'addList',
        component: addList
      },{
        path: '/aList',
        name: 'aList',
        component: aList
      },{
        path: '/comfirm',
        name: 'comfirm',
        component: comfirm
      },]
    },
  ]
})
